﻿using DearlerPlatform.Domain.Entity;
using DearlerPlatform.Service.ProductApp.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DearlerPlatform.Service.ProductApp
{
    public partial class ProduceService
    {
        public async Task<List<ProductsalesVM>> GetProductSalesByProductNo(params string[] productNo)
        {
            var res = await _productSaleRepo.GetListAsync(m => productNo.Contains(m.Productno));
            return _mapper.Map<List<Productsales>, List<ProductsalesVM>>(res);
        }
    }
}
